package com.gagakuai.bind;

import com.gagakuai.session.Configuration;
import com.gagakuai.session.SqlSession;

import java.lang.reflect.Method;

/*
 * @program: settement
 * @description: 映射器方法
 * @author: houhong
 * @create: 2022-11-08 22:14
 */
public class MapperMethod {

    private final SqlCommand sqlCommand;
    private final MethodSignature signature;

    public MapperMethod(Class<?> mapperInterface, Method method, Configuration configuration) {

        this.sqlCommand = new SqlCommand(configuration, mapperInterface, method);
        this.signature = new MethodSignature(configuration, method);
    }

    /*
     * @param args
     * @param sqlSession
     * @Description //TODO 返回 执行结果
     */
    public Object execute(SqlSession sqlSession, Object[] args) {

        return null;
    }


    public static class SqlCommand {


        public SqlCommand(Configuration configuration, Class<?> mapperInterface, Method method) {

        }
    }

    public static class MethodSignature {

        public MethodSignature(Configuration configuration, Method method) {

        }

    }


}